//
//  YXPhotoPreviewController.h
//  YuanXinCamera
//
//  Created by wangxue on 2016/11/18.
//  Copyright © 2016年 晏德智. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "TZPhotoPreviewCell.h"
#import "YXAssetModel.h"

typedef void (^imageLoadCompletionBlock) (UIImage *image,NSInteger tag);

@protocol PhotoPreviewImageLoader <NSObject>

@required
- (void)cellLazyImageWithAssetModel:(YXAssetModel *)assetModel completionBlock:(imageLoadCompletionBlock)completionBlock;

@end

@interface YXPhotoPreviewController : UIViewController
//图片数组模型
@property (nonatomic) NSArray<YXAssetModel *> *models;
//图片base64类型数组模型
@property (nonatomic) NSArray<YXAssetModel *> *base64Models;

@property (nonatomic) NSInteger showFirstIndex;

@property (nonatomic) CGRect tappedThumbnail;

@property (nonatomic) UICollectionView *collectionView;
 
@property (nonatomic,weak) id<PhotoPreviewImageLoader> cellImageLoader;

//@property (nonatomic,copy) lazyImageLoader cellImageLoader;

@end
